<body>
<?php include 'header.phtml';?>
</div>
<div id="OpportunityEditAndDetailsView" class="AppContent SecuredEditAndDetailsView EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView">
	<div class="wrapper">
		<h1>
			<span class="truncated-title">
				<span class="ellipsis-content">Create Opportunity</span>
			</span>
		</h1>
		<div class="wide form">
			<form onSubmit="js:return $(this).attachLoadingOnSubmit(&quot;edit-form&quot;)" id="edit-form" action="<?php echo $this->basePath();?>/opportunity/add" method="post">
<div style="display:none"><input type="hidden" value="d5512c4ccb9b15ef3d7d2f43adf4c8ac6d3282ea" name="YII_CSRF_TOKEN" /></div>

<div class="attributesContainer">
	<div class="left-column">
		<div class="panel">
			<table class="form-fields">
					<colgroup>
						<col class="col-0" />
						<col class="col-1" />
					</colgroup>
					
					<tbody>
						<tr>
							<th>
								<label for="Opportunity_name" class="required">Name 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
							<?php
								echo $this->formInput($form->get('name'));
							?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_amount_currency" class="required">Amount Currency 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formInput($form->get('amount_currency_id'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_amount_value" class="required">Amount Value 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formInput($form->get('amount_value'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_account_id">Account
								<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formInput($form->get('account_id'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_closeDate" class="required">Close Date 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								
									<?php
										echo $this->formInput($form->get('closedate'));
									?>
								
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_stage_value" class="required">Stage 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
									<?php
										echo $this->formInput($form->get('stage_id'));
									?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_probability" class="required">Probability 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formInput($form->get('probability'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_source_value">Source</label>
								<span class="required">*</span>
							</th>
							<td colspan="1">
								<?php
									echo $this->formInput($form->get('source_id'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_description">Description</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formInput($form->get('description'));
								?>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		
	</div>
	<div class="float-bar">
						<?php
									$form = $this->form;
									$form->setAttribute('action', $this->url('opportunity', array('action' => 'add')));
									$form->prepare();
									//echo $this->formInput($form->get('search'));
									echo $this->formSubmit($form->get('submit'));
								?>
			
	</div>
</form>
<div id="modalContainer-edit-form">
</div>
</div>
</div>
</div>
	<div id="FlashMessageView">
		<div id = "FlashMessageBar"></div>
	</div>
</div>
	<div id="ModalContainerView"><div id="modalContainer"></div></div><div id="ModalGameNotificationContainerView"></div><div id="GameCoinContainerView"></div><div id="FooterView"><a href="http://www.zurmo.com" id="credit-link" class="clearfix"><span>Copyright &#169; Zurmo Inc., 2013. All rights reserved.</span></a><div class="ui-chooser"><a class="icon-mobile" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Mobile"><span>Show Mobile</span></a><a class="icon-desktop active" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Desktop"><span>Show Full</span></a></div></div></div></div></div>
	<script type="text/javascript">
/*<![CDATA[*/
</script>

